package org.bddall.util;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

import static java.lang.System.setProperty;

public class WebDriverFactory {

    private static WebDriver driver;

    public static WebDriver driver(){


        //Linux、Mac OS 平台下浏览器驱动配置
        setProperty("webdriver.chrome.driver", "webdriver/osx/chrome/64bit/95/chromedriver");

        //Windows平台下浏览器驱动配置
        //setProperty("webdriver.chrome.driver", "webdriver\win10\chrome\32bit\95\chromedriver.exe");

        driver = new ChromeDriver();
        return driver;
    }

}
